/**
 * 
 */
package mblog.core.pojos;

import java.io.Serializable;

import com.faxsun.core.pojos.enums.TagType;

/**
 * @author langhsu
 * 
 */
public class Tag implements Serializable {
	private static final long serialVersionUID = 3262289824211326798L;

	private long id;
	private String name;
	private long lastPostId;
	private int featured; // 是否推荐
	private int posts;
	private int hots; //喜欢
	private TagType type;
	private int typeInt;
	
	private Post post;
	private Product product;
	private int comments;
	
	private int followsCounts;    
    private int thumbsupCounts;
	
	//用户相关变量
	private String isUserFollowd;
    private String isUserThumbsup;
	private long followerId;
    
	private String videoUrl;
    
    private boolean isNav;
    private String tagNavName;
    private int module;
    private boolean curTag;//used for navigation highlight
    
	public Tag(){
		
	}
	
	public Tag(String name){
		this.name=name;
	}
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPosts() {
		return posts;
	}

	public void setPosts(int posts) {
		this.posts = posts;
	}

	public int getHots() {
		return hots;
	}

	public void setHots(int hots) {
		this.hots = hots;
	}

	public long getLastPostId() {
		return lastPostId;
	}

	public void setLastPostId(long lastPostId) {
		this.lastPostId = lastPostId;
	}

	public int getFeatured() {
		return featured;
	}

	public void setFeatured(int featured) {
		this.featured = featured;
	}

	public Post getPost() {
		return post;
	}

	public void setPost(Post post) {
		this.post = post;
	}

	public TagType getType() {
		return type;
	}

	public void setType(TagType type) {
		this.type = type;
		this.typeInt=type.getValue();
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
	public void setTypeInt(int type){
		this.type=TagType.parse(type);
		this.typeInt=type;
	}

	public int getTypeInt() {
		return this.typeInt;
	}

	public int getComments() {
		return comments;
	}

	public void setComments(int comments) {
		this.comments = comments;
	}

	public int getFollowsCounts() {
		return followsCounts;
	}

	public void setFollowsCounts(int followsCounts) {
		this.followsCounts = followsCounts;
	}

	public int getThumbsupCounts() {
        return thumbsupCounts;
    }

    public void setThumbsupCounts(int thumbsupCounts) {
        this.thumbsupCounts = thumbsupCounts;
    }

    public String getIsUserFollowd() {
		return isUserFollowd;
	}

	public void setIsUserFollowd(String isUserFollowd) {
		this.isUserFollowd = isUserFollowd;
	}

    public String getIsUserThumbsup() {
        return isUserThumbsup;
    }

    public void setIsUserThumbsup(String isUserThumbsup) {
        this.isUserThumbsup = isUserThumbsup;
    }

    public long getFollowerId() {
        return followerId;
    }

    public void setFollowerId(long followerId) {
        this.followerId = followerId;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public boolean getIsNav() {
        return isNav;
    }

    public void setIsNav(boolean isNav) {
        this.isNav = isNav;
    }

	public String getTagNavName() {
		return tagNavName;
	}

	public void setTagNavName(String tagNavName) {
		this.tagNavName = tagNavName;
	}

	public void setNav(boolean isNav) {
		this.isNav = isNav;
	}

	public int getModule() {
		return module;
	}

	public void setModule(int module) {
		this.module = module;
	}

    public boolean isCurTag() {
        return curTag;
    }

    public void setCurTag(boolean curTag) {
        this.curTag = curTag;
    }
	
}
